#include<iostream>

using namespace std; 
class Solution {
public:
    int encryptionCalculate(int dataA, int dataB) {
        while (dataB) {
            int carry = dataA & dataB;
            dataA = dataA ^ dataB;
            dataB = carry << 1;
        }
        return dataA;
    }
};